package org.example.samplespringbootprovider.service;

import com.heartunderblade.springbootstarter.annotation.RpcService;
import com.heartunderblade.rpc.pojo.User;
import com.heartunderblade.rpc.service.UserService;

/**
 * 用户接口实现类
 */

//@Service
@RpcService
public class UserServiceImpl implements UserService {
//        private String name;
//        public UserServiceImpl( String name) {
//            this.name = name;
//        }

    @Override
    public User getUser(User user) {
        user.setName("提供者已修改");
        System.out.println("用户名：" + user.getName());
        return user;
    }
}